#include <jni.h>
#include <string>
#include <sys/stat.h>
#include <android/log.h>
#include <fcntl.h>

extern "C"
JNIEXPORT jlong JNICALL
Java_com_bnq_logc_native_NativeLogc_getFileCreateTime(JNIEnv *env, jclass clazz,jstring j_path) {
    const char *path = env->GetStringUTFChars(j_path, nullptr);
    //获取文件具体大小
    struct stat st = {0};
    if(stat(path,&st) != -1){
        return st.st_atime;
    }else{
        return 0;
    }
}


